home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / DU Folder / Windoid / Sources / Include / WindoidFrm.h < prev    next >
Encoding:
Text File  |  1995-11-21  |  1.8 KB  |  56 lines  |  [TEXT/MPS ]

  1. //    Copyright © 1995 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ 1.0 d8 $
  3.  
  4. #ifndef _WINDOIDFRAME_
  5. #define _WINDOIDFRAME_
  6.  
  7. //===========================================================================
  8. // ----- Framework Includes -----
  9. #ifndef FWFRAME_H
  10. #include <FWFrame.h>        // FW_CFrame
  11. #endif
  12.  
  13. //===========================================================================
  14. class FW_CLASS_ATTR CWindoidPart;
  15. class FW_CLASS_ATTR FW_CMenuEvent;
  16.  
  17. //===========================================================================
  18. class FW_CLASS_ATTR CMainFrame : public FW_CFrame {
  19. public:
  20.                         CMainFrame(Environment* ev, ODFrame* odFrame, 
  21.                                     FW_CPresentation* presentation, 
  22.                                     CWindoidPart* windoidPart);
  23.     virtual             ~CMainFrame();
  24. protected:
  25.     // overrides
  26.     virtual void        Draw(Environment *ev, ODFacet* odFacet, 
  27.                                          ODShape* invalidShape);
  28. };
  29.  
  30. //===========================================================================
  31. class FW_CLASS_ATTR CPaletteFrame : public FW_CFrame {
  32. public:
  33.                         CPaletteFrame(Environment* ev, ODFrame* odFrame, 
  34.                                         FW_CPresentation* presentation, 
  35.                                         CWindoidPart* windoidPart);
  36.     virtual             ~CPaletteFrame();
  37. protected:
  38. // overrides
  39.     virtual void        Draw(Environment *ev, ODFacet* odFacet, 
  40.                                                  ODShape* invalidShape);
  41.     virtual FW_Boolean     DoMouseDown(Environment* ev, 
  42.                                 const FW_CMouseEvent& theMouseEvent);
  43.     FW_Boolean            FindCell(const FW_CPoint& where, unsigned short& row, 
  44.                                             unsigned short& column) const;
  45.     void                GetCellRectangle(unsigned short row, 
  46.                             unsigned short column, FW_CRect& rect) const;
  47. // new members
  48. private:
  49.     CWindoidPart*         fWindoidPart;
  50.     ODSShort             fSelectedRow;
  51.     ODSShort              fSelectedCol;
  52. };
  53.  
  54. //=======================================================================
  55. #endif
  56.